﻿using RayDen.Library.Entity.Frames;
using RayDen.Library.Entity.Interface;
using RayDen.RayEngine;

namespace UITools
{
    public class RendererController
    {
        public IRenderConfig RenderConfig;

        public RendererController()
        {
            RenderConfig = new RayEngineConfiguration();
        }

        public void SetupFrame(FrameDescription frm)
        {
            RenderConfig.OpenFrame(frm);
        }

        public void Start()
        {
            RenderConfig.Start();            
        }

        public void Interrupt()
        {
            RenderConfig.Interrupt();
        }
    }
}